package com.hotel.person.repository;

import com.hotel.comm.bean.person.EjobUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface IEjobUserRepository extends JpaRepository<EjobUser, Long> {
    /**
     * 根据登陆名获取个人用户
     *
     * @param loginName
     * @return
     */
    @Query("select eu from EjobUser eu where eu.loginName = ?1")
    public EjobUser getByLoginName(String loginName);
}
